package com.cc.mapper;

import com.cc.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Administrator
* @description 针对表【user】的数据库操作Mapper
* @createDate 2025-06-04 15:20:20
* @Entity com.cc.entity.User
*/
public interface UserMapper {

    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    // 查询用户 通过名字模糊匹配
    List<User> getList(@Param("name") String name);

    // 添加用户
    int addUser(User user);

    // 删除用户
    int deleteUser(int id);

    // 修改用户
    int updateUser(User user);

}
